package com.lvhx.springboot.base;

/**
 * 加载聚合的顶层接口
 *
 * @param <T>
 */
public interface Repository<T> {
    T load(Object aggregateIdentifier, Long expectedVersion, boolean lockYn);

    T load(Object aggregateIdentifier);

    T loadWithoutLock(Object aggregateIdentifier);
}
